luci-mod-network: work around jsmin bug
authorJo-Philipp Wich <[email protected]>
Fri, 2 Jul 2021 18:40:08 +0000 (20:40 +0200)
committerJo-Philipp Wich <[email protected]>
Fri, 2 Jul 2021 18:48:09 +0000 (20:48 +0200)
commitae00d0f7126748b5f1377cb8cf37d704fdb7c402
treea2d89b82a69d5f5aa2db8a6c8066b87c8525c212
parentf66be1fe722a28aa56690764f8e7e1d668f32772
luci-mod-network: work around jsmin bug

The jsmin minifier incorrectly transforms the expression `/\*/.test(...)`
into `/\* /.test(...)`, causing the VLAN filter dialog to not recognize
PVID settings in the configuration.

Work around the issue by using an equivalent `\x2a` escape sequence instead.

Ref: https://forum.openwrt.org/t/x/99222/28
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 2869c9cf324a9e057567075d4977c7cc40140938)
modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js